عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false
مثلاً
string a="abc"; string b="ABC";
if(a==b) print("true");
else print("false");
حتى لو استخدمت الطريقة التالية للمقارنة if(a.Equals(b))
في كلا الطريقتين لن يتحقق الشرط وسيطبع false
لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد StringComparison
عندما تقوم بمقارنة النصوص string في السي شارب فإن عملية المقارنة تكون حساسة لحالة الاحرف حتى وان كنت تقوم بمقارنة متغيرين لهما نفس الكلمة مع اختلاف في حالة الحروف سوف تكون نتيجة المقارنة false
مثلاً
string a="abc"; string b="ABC";
if(a==b) print("true");
else print("false");
حتى لو استخدمت الطريقة التالية للمقارنة if(a.Equals(b))
في كلا الطريقتين لن يتحقق الشرط وسيطبع false
لاكن اذا اردت المقارنة بغض النظر عن حالة الاحرف نستخدم معداد StringComparison
If riding a bucking bronco is your idea of fun, you’re going to love what the stock market has in store. Consider this past week’s ride a preview.The week’s action didn’t look like much, if you didn’t know better. The Dow Jones Industrial Average rose 213.12 points or 0.6%, while the S&P 500 advanced 0.5%, and the Nasdaq Composite ended little changed.
How to Use Bitcoin?
n the U.S. people generally use Bitcoin as an alternative investment, helping diversify a portfolio apart from stocks and bonds. You can also use Bitcoin to make purchases, but the number of vendors that accept the cryptocurrency is still limited. Big companies that accept Bitcoin include Overstock, AT&T and Twitch. You may also find that some small local retailers or certain websites take Bitcoin, but you’ll have to do some digging. That said, PayPal has announced that it will enable cryptocurrency as a funding source for purchases this year, financing purchases by automatically converting crypto holdings to fiat currency for users. “They have 346 million users and they’re connected to 26 million merchants,” says Spencer Montgomery, founder of Uinta Crypto Consulting. “It’s huge.”